<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Login extends CI_Controller {
 
	public function index()
	{
	 
	//	$this->load->view('template/template');
		$this->load->view("login/login" );
	//	$this->load->view('template/footer');
	}
	
	public function checkLogin(){
		$inData["username"]=$this->input->post("username");
		$inData["password"]=$this->input->post("password");
		echo $this->user_model->checkLogin( $inData);
		//print_r( $this->user_model->checkLogin( $inData));
		//echo  $inData["username"];
	}
	
	public function logout(){
		$this->session->sess_destroy();
	 
		//print_r( $this->session->all_userdata());
		//echo $this->session->userdata('session_id');
	    $this->load->view("login/login" );
	}
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */